// AC@LG;  AC@YBT
#include <bits/stdc++.h>
using namespace std;
// lg: P1125 笨小猴
int main() {
   char ch[110];
   //scanf("%s", ch);
   gets(ch);
   int n = strlen(ch), max = 0, min = 100;
   for (int i = 0; i < n; i++) {
      int t = 0;
      for (int j = 0; j < n; j++)
         if (ch[i] == ch[j]) t++;

      if (t > max) max = t;
      if (t < min) min = t;
   }
   int x = max - min;
   if (x >= 2) {
      int flag = 0;
      for (int i = 2; i <= sqrt(x); i++) {
         if (x % i == 0) {
            flag = 1;
            break;
         }
      }
      if (flag == 0)  printf("Lucky Word\n%d", x);
      else            printf("No Answer\n0");
   } else             printf("No Answer\n0");
   
   return 0;
}
